#define _CRT_SECURE_NO_WARNINGS 1

class Solution {
public:
    int maxConsecutive(int bottom, int top, vector<int>& special) {
        sort(special.begin(), special.end());
        int start = bottom, res = 0;
        for (auto& e : special)
        {
            res = max(res, e - start);
            start = e + 1;
        }
        res = max(res, top - start + 1);
        return res;
    }
};